<?php
/**
* 功能描述（关于控制器）
*
* @author suoya <jlusuoya@gmail.com>
* @version 1
*/

class CtrlAbout extends CtrlBase
{

	function Index()
	{
		return RT_TPL;
	}

	function Article1()
	{
		$data = array (
			array (
				'id' => 1,
				'time' => "2011-06-09",
				'title' => "梵地教您品味蛋糕",
			),
			array (
				'id' => 2,
				'time' => "2011-06-08",
				'title' => "梵地蛋糕选用精品芒果",
			)
		);
		for($i = 3; $i < 23; $i++)
			$data[] = array('id' => $i, 'time' => '2011-05-' . ($i+7), 'title' => "测试标题" . $i);
		$this->assign("datalist", $data);
		$this->assign("pages", 2);
		$this->assign("total", 22);
		return 2;
	}

	function Article2()
	{
		return 2;
	}

	function Article3()
	{
		
		$data = array (
			array (
				'id' => 1,
				'time' => "2012-06-09",
				'title' => "梵地员工家属开放日",
			),
			array (
				'id' => 2,
				'time' => "2012-06-08",
				'title' => "年梵地获得全国QS认...",
			)
		);
		for($i = 3; $i < 23; $i++)
			$data[] = array('id' => $i, 'time' => '2012-05-' . $i+7, 'title' => "第2测试标题" . $i);
		$this->assign("datalist", $data);
		$this->assign("pages", 2);
		$this->assign("total", 22);
		return 2;
	}
}

